package com.softwareconstruction.model;

public class Thesis extends Paper {
    private String advisor;
    
    public Thesis(String title, String author, String advisor) {
        super(title, author);
        this.advisor = advisor;
    }
    
    public String getAdvisor() {
        return advisor;
    }
    
    public void setAdvisor(String advisor) {
        this.advisor = advisor;
    }
    
    @Override
    public String getType() {
        return "Thesis";
    }
    
    @Override
    public void accept(com.softwareconstruction.pattern.PaperVisitor visitor) {
        visitor.visit(this);
    }
}